package com.xc.c1

import scala.io.StdIn

object T3 {


  def main(args: Array[String]): Unit = {
    val res = xx
    println("res = " + res)
    val x = 'x' * 2
    println("'c' * 2 = " + x)

    val d = 10.max(20)
    println("10.max(2) = " + d)

    var bi = BigInt(10)
    println("BigInt(10) = " + bi)

    println("----------------------------")

    println("hello first : " + "hello".take(1))
    println("hello last : " + "hello".takeRight(1))
    println("hello last : " + "hello".reverse.take(1))

    var dd: Double = 10.0 / 3;
    println("10.0/3 = " + dd.formatted("%.2f"))
    var mm: Char = 1;

    val op = if (5 > 4) "大于" else "小于"
    println("(5>4) = " + op)

  }

  def xx: Unit = {


  }
}
